package com.xmg.boot.demo.bootlesson1.user.handler.Exception;

/**
 * @description: 自定义异常的枚举类型
 * @author: ma
 * @date: 2023/12/4
 **/
public enum BaseExceptionEnum {
    NOT_FOUND("404","访问资源不存在！"),
    BODY_NOT_MATCH("400","数据格式不匹配！"),
    INTERNAL_SERVER_ERROR("500","服务器内部错误！");

    BaseExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
